#include<stdio.h>
#include<unistd.h>
#include<signal.h>

int a=1,b=1;

int print(){
    a++;
    sleep(5);
    b++;
    return a+b;
}
void sigcb(int no){
    printf("sigcb:%d\n",print());
}
int main(){
    signal(SIGINT,sigcb);
    printf("main:%d\n",print());
    return 0;
}
